.class final Llt/noframe/ratemeplease/RateMePlsKotlin$showIfTriggered$1;
.super Lkotlin/jvm/internal/Lambda;
.source "RateMePlsKotlin.kt"

# interfaces
.implements Lkotlin/jvm/functions/Function0;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/ratemeplease/RateMePlsKotlin;->showIfTriggered(Landroidx/fragment/app/FragmentActivity;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x18
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lkotlin/jvm/internal/Lambda;",
        "Lkotlin/jvm/functions/Function0<",
        "Ljava/lang/Boolean;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic $activity:Landroidx/fragment/app/FragmentActivity;

.field final synthetic this$0:Llt/noframe/ratemeplease/RateMePlsKotlin;


# direct methods
.method constructor <init>(Llt/noframe/ratemeplease/RateMePlsKotlin;Landroidx/fragment/app/FragmentActivity;)V
    .locals 0

    iput-object p1, p0, Llt/noframe/ratemeplease/RateMePlsKotlin$showIfTriggered$1;->this$0:Llt/noframe/ratemeplease/RateMePlsKotlin;

    iput-object p2, p0, Llt/noframe/ratemeplease/RateMePlsKotlin$showIfTriggered$1;->$activity:Landroidx/fragment/app/FragmentActivity;

    const/4 p1, 0x0

    invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V

    return-void
.end method


# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
    .locals 1

    .line 17
    invoke-virtual {p0}, Llt/noframe/ratemeplease/RateMePlsKotlin$showIfTriggered$1;->invoke()Z

    move-result v0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    return-object v0
.end method

.method public final invoke()Z
    .locals 6

    .line 55
    iget-object v0, p0, Llt/noframe/ratemeplease/RateMePlsKotlin$showIfTriggered$1;->$activity:Landroidx/fragment/app/FragmentActivity;

    invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;

    move-result-object v0
    
    const/4 v1, 0x0

    return v1
    
    .line 56
    invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;

    move-result-object v1

    const-string v2, "manager.beginTransaction()"

    invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v2, "dialog"

    .line 57
    invoke-virtual {v0, v2}, Landroidx/fragment/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroidx/fragment/app/Fragment;

    move-result-object v3

    .line 59
    iget-object v4, p0, Llt/noframe/ratemeplease/RateMePlsKotlin$showIfTriggered$1;->this$0:Llt/noframe/ratemeplease/RateMePlsKotlin;

    iget-object v5, p0, Llt/noframe/ratemeplease/RateMePlsKotlin$showIfTriggered$1;->$activity:Landroidx/fragment/app/FragmentActivity;

    invoke-static {v4, v5}, Llt/noframe/ratemeplease/RateMePlsKotlin;->access$getSocialNetwork(Llt/noframe/ratemeplease/RateMePlsKotlin;Landroid/content/Context;)Llt/noframe/ratemeplease/abs/AbsSocialNetwork;

    move-result-object v4

    const/4 v5, 0x0

    if-eqz v4, :cond_1

    if-eqz v3, :cond_0

    .line 61
    invoke-virtual {v1, v3}, Landroidx/fragment/app/FragmentTransaction;->remove(Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransaction;

    .line 62
    :cond_0
    invoke-virtual {v1, v5}, Landroidx/fragment/app/FragmentTransaction;->addToBackStack(Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;

    .line 63
    invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;

    move-result-object v0

    .line 64
    invoke-virtual {v4}, Llt/noframe/ratemeplease/abs/AbsSocialNetwork;->getDialog()Llt/noframe/ratemeplease/abs/AbsDialogFragment;

    move-result-object v1

    invoke-virtual {v0, v1, v2}, Landroidx/fragment/app/FragmentTransaction;->add(Landroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;

    .line 65
    invoke-virtual {v0}, Landroidx/fragment/app/FragmentTransaction;->commitAllowingStateLoss()I

    .line 67
    sget-object v0, Llt/noframe/ratemeplease/Triggers;->INSTANCE:Llt/noframe/ratemeplease/Triggers;

    iget-object v1, p0, Llt/noframe/ratemeplease/RateMePlsKotlin$showIfTriggered$1;->$activity:Landroidx/fragment/app/FragmentActivity;

    invoke-virtual {v0, v1, v4}, Llt/noframe/ratemeplease/Triggers;->addShownDialog(Landroid/content/Context;Llt/noframe/ratemeplease/abs/AbsSocialNetwork;)V

    .line 68
    sget-object v0, Llt/noframe/ratemeplease/Triggers;->INSTANCE:Llt/noframe/ratemeplease/Triggers;

    iget-object v1, p0, Llt/noframe/ratemeplease/RateMePlsKotlin$showIfTriggered$1;->$activity:Landroidx/fragment/app/FragmentActivity;

    invoke-virtual {v0, v1}, Llt/noframe/ratemeplease/Triggers;->clearCounts(Landroid/content/Context;)V

    const/4 v0, 0x1

    return v0

    :cond_1
    if-eqz v3, :cond_2

    .line 71
    invoke-virtual {v1, v3}, Landroidx/fragment/app/FragmentTransaction;->remove(Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransaction;

    .line 72
    :cond_2
    invoke-virtual {v1, v5}, Landroidx/fragment/app/FragmentTransaction;->addToBackStack(Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;

    const/4 v0, 0x0

    return v0
.end method
